package com.zhangxin.common.model.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 公共返回对象
 *
 * @param <T> 返回结果
 */
@Data
public class ResultInfo<T> implements Serializable {
    @ApiModelProperty(value = "成功标识0=失败，1=成功")
    private int code;

    @ApiModelProperty(value = "描述信息")
    private String message;

    @ApiModelProperty(value = "访问路径")
    private String path;

    @ApiModelProperty(value = "返回数据对象")
    private T data;
}
